package classrecord;

import classrecord.classes.database.common.DaoManager;
import classrecord.classes.database.studentnumbertbl.STUDENTNUMBERTBLDao;
import classrecord.classes.database.studentnumbertbl.STUDENTNUMBERTBLDomain;

public class DeleteIntoStudentNumberTable {

	public static void main(String[] args) {
		
		STUDENTNUMBERTBLDomain studentnumbertblDomain = new STUDENTNUMBERTBLDomain();
		studentnumbertblDomain.setRecordNumber(3);
		studentnumbertblDomain.setStudentNumber("2005005333");
		
		STUDENTNUMBERTBLDao studentnumbertblDao = new STUDENTNUMBERTBLDao();
		studentnumbertblDao.setConnection(new DaoManager().getConnection());
		studentnumbertblDao.setStudentnumbertblDomain(studentnumbertblDomain);
		
		boolean wasDeleted = studentnumbertblDao.physicalDelete();
		System.out.println("Records deleted: " + wasDeleted);

	}

}
